package Homework5;
class Human{
    public  String name;
    public  int age;
    public  String gender;
    public  String school;
    public Human(String name,int age,String gender,String school){
        this.name=name;
        this.age=age;
        this.gender=gender;
        this.school=school;}
    public void say(){
        System.out.println("我的名字是"+name+",我的年龄是"+age+"，我的性别是"+gender+"，我的学校是"+school);
    }
}

class Commom extends  Human{
    private  String  work;
    public  Commom(String name,int age,String gender,String school,String work) {
        super(name, age, gender, school);
        this.work = work;}
    public void say(){
        System.out.println("我的名字是" + name + ",我的年龄是" + age + "，我的性别是" + gender + "，我的学校是" + school + ",我的工作是" + work);
    }
}

class Arts extends Human{
    private  String master ;
    private  String  dream;
    public Arts(String name,int age,String gender,String school,String master, String dream){
        super(name, age, gender, school);
        this.master=master;
        this.dream=dream;}
    public void say(){
        System.out.println("我的名字是" + name + ",我的年龄是" + age + "，我的性别是" + gender + "，我的学校是" + school + ",我的代表作是" + master+"，我的梦想是"+dream);
    }
}
public class Youth {
    public static  void main(String[] args){
        Human a=new Human("张三",20,"男","湖南师范大学");
        a.say();
        Commom b=new Commom("李四",21,"女","湖南大学","程序员");
        b.say();
        Arts c=new Arts("王五",22,"男","中南大学","音乐","歌手");
        c.say();
    }
}




